package com.zhn.resourcej.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zhn.resourcej.entity.User;
import com.zhn.resourcej.mapper.UserMapper;
import com.zhn.resourcej.service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.management.Query;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Mr.Seaning
 * @since 2023-12-04
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    @Override
    public User findByUsnum(String usname) {
        QueryWrapper<User> wrapper = new QueryWrapper<User>()
                .eq("usname",usname);
        return this.getOne(wrapper);
    }
}
